const path = require('path')
module.exports = {
    pages: {
        index: {
            //入口
            entry: 'src/main.js',
        },
    },
    lintOnSave: false,//关闭语法检查
    pluginOptions: {
        'style-resources-loader': {
            preProcessor: 'less',
            patterns: [
                path.resolve(__dirname, './src/assets/common/index.less')
            ]
        }
    },
    devServer: {
        host: 'localhost',
        port: 8081, // 端口号
        https: false, // https:{type:Boolean}
        open: true, //配置自动启动浏览器  open: 'Google Chrome'-默认启动谷歌
        proxy:'http://www.zhangminghui.vip:8080'  //接收请求的服务器地址
    },
    publicPath:'./',
    outputDir: "dist",
    assetsDir: "static",
    indexPath: "index.html",
    filenameHashing: false,
    pages: {
        index: {
            entry: 'src/main.js',
            template: 'public/index.html',
            filename: 'index.html',
            chunks: ['chunk-vendors', 'chunk-common', 'index']

        }

    }
}
